title: Serializable to Json saving Memory leaks
body: <p>I recently changed it so that my project saves and loads a Player with json/gson String.</p>
  
  <p>However, whenever I attempt to save, I get a </p>
  
  <pre><code>java.lang.OutOfMemoryError: Java heap space
  at java.util.Arrays.copyOf(Arrays.java:3332)
  </code></pre>
  
  <p>I removed the implementation of Serializable on the Player, however, there still may be some fields that are serializable that are being saved in the player.</p>
  
  <p>Is this the issue? That I still have some serializable items attributed to the player that is being saved with json/gson?</p>
  
  <p>Or is it something else?</p>
  
  <p>Edit: It does not even save the player, it gives the out of memory error before saving the file</p>