Bug fixing and separated Pixel.java to its own class