added srand(time(null)) in constructor
more updates on game logic of creating pieces and udpating them