Added movements for all the pieces as well as made the code more efficient