almost working basic pygame logic